﻿namespace com.nm
{
    /// <summary>
    /// 权限类型
    /// </summary>
    public enum RightTypes : long
    {
        /// <summary>
        /// 查看权限
        /// </summary>
        View = 0x01,

        /// <summary>
        /// 新建
        /// </summary>
        New = 0x02,

        /// <summary>
        /// 修改，只能修改和当前用户相关联的项目
        /// </summary>
        Edit = 0x04,

        /// <summary>
        /// 删除，只能修改和当前用户相关联的项目
        /// </summary>
        Delete = 0x08,

        /// <summary>
        /// 执行（执行特定操作）
        /// </summary>
        Execute = 0x10,

        /// <summary>
        /// 打印
        /// </summary>
        Print = 0x20,

        /// <summary>
        /// 修改（管理）
        /// </summary>
        EditByAdmin = 0x10000004,

        /// <summary>
        /// 删除（管理）
        /// </summary>
        DeleteByAdmin = 0x10000008,

        /// <summary>
        /// 管理权限
        /// </summary>
        Manager = 0x10000000,

        /// <summary>
        /// 所有权限
        /// </summary>
        All = 0xFFFFFFFF
    }
}